package com.hst.web.base.ui;

/**
 * @Auther: liwei
 * @Date: 2024/04/21/0021 - 04 - 21 - 13:12
 * @Description: com.hst.web.base.ui
 * @version: 1.0
 */
public class HisContractResult {

    private String code;

    private String message;

    private Object data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }


    public static HisContractResult fail(String message){
        HisContractResult result = new HisContractResult();
        result.setCode("0001");
        result.setMessage(message);
        return result;
    }

    public static HisContractResult success(String message){
        HisContractResult result = new HisContractResult();
        result.setCode("0000");
        result.setMessage(message);
        return result;
    }

}
